 	var whichText;
    function selectStation(obj,seledName) {
   	var objSelStation = obj;
        if (obj.selectedIndex != -1) {
            var stationName = obj.options[obj.selectedIndex].text;
            whichText.value = stationName;
        }
        showDivStation(this, false,seledName)   ;  
    }
   	
    function similarFind(txtObj,seledName) {
    	alert("similarFind") ;
  	var pageD =0, pageU;
	var curStationName = txtObj.value;
    var objSelStation = document.getElementById(seledName); 
   	pageU = pageD;
    $.ajax({
			url:"${pageContext.request.contextPath}/users/findUser",
			type:"POST",
			data:{searchName:curStationName},
			dataType:"json",
			success:function(list){
				objSelStation.options.length=0;
				for(var i=0;i<list.length;i++){
				$("#"+seledName).append("<option value='"+list[i].uid+"'>"+list[i].name+"("+list[i].email+")"+"</option>"); 	
				}
			}
		});
//响应下移键
   if(event.keyCode==40) {
     pageD++;
     if(pageD==objSelStation.options.length) pageD=0;
     txtObj.value=objSelStation.options[pageD].text ;
     objSelStation.selectedIndex = pageD;
   }
//响应上移键
   if(event.keyCode==38) {
     --pageU;
     if(pageU<0) pageU=objSelStation.options.length-1;
     txtObj.value = objSelStation.options[pageU].text;
     objSelStation.selectedIndex = pageU;
    }
}

//下拉框显示位置
    function showDivStation(obj, b,selName) {
    	alert("showDivStation") ;
        var divStation = document.getElementById(selName); 
        if (b) {
            whichText = obj;
            divStation.style.display="block";
        } else {
            divStation.style.display="none";
        }
}